package java8.stream;

import java.util.Arrays;
import java.util.List;
import java.util.Random;
import java.util.stream.Collectors;

public class Basic {
	public static void main(String[] args) {
		 List<String> strings = Arrays.asList("abc", "", "bc", "efg", "abcd", "", "jkl");
		 List<String> filtered = strings.stream().filter(str->!str.isEmpty()).collect(Collectors.toList());
		 filtered.forEach(String::toCharArray);
		 new Random().ints().limit(10).sorted().forEach(System.out::println);
	}
}
